<template>

</template>
<script>

import { toRefs, reactive } from 'vue'
export function setItem(str, data) {
    sessionStorage.setItem(str, JSON.stringify(data))
}
export function getItem(str) {
    return JSON.parse(sessionStorage.getItem(str))
}
export default {

    setup() {


        return {
            setItem,
            getItem
        }
    }
}
</script>

<style></style>
